<?php /* Smarty version Smarty-3.1.8, created on 2012-05-20 06:45:32
         compiled from "application/views/templates\panel\comment_panel.tpl" */ ?>
<?php /*%%SmartyHeaderCode:186534fb8930cf2f080-25387192%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4e5cf75e6ec3a41ce12ed4a08f663faaeffc7b95' => 
    array (
      0 => 'application/views/templates\\panel\\comment_panel.tpl',
      1 => 1337438308,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '186534fb8930cf2f080-25387192',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'caption' => 0,
    'm_target_type' => 0,
    'm_target' => 0,
    'content' => 0,
    'comment' => 0,
    'row' => 0,
    'user_to' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fb8930d1d1c55_56242451',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fb8930d1d1c55_56242451')) {function content_4fb8930d1d1c55_56242451($_smarty_tpl) {?><div class="round-corner white">
	<div style="margin:30px">
	
	<div id= "send_form">
	<form class="form-horizontal"  action="/index.php/message/insert_comment" method="post" >
        <fieldset>
          <legend>Comment to: </legend><h1><?php echo $_smarty_tpl->tpl_vars['caption']->value;?>
</h1>
          
           <div class="control-group">
             <label class="control-label" for="content"> </label>
             <div class="controls">
             <?php if ($_smarty_tpl->tpl_vars['m_target_type']->value=='photo'){?>
              <img src="/uploads/<?php echo $_smarty_tpl->tpl_vars['m_target']->value;?>
.jpg"></img>
             <?php }else{ ?>
              <h2><?php echo $_smarty_tpl->tpl_vars['content']->value['m_content'];?>
</h2>
             <?php }?>
             
              <?php if ($_smarty_tpl->tpl_vars['comment']->value){?>
			   <ul>
		       	<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['comment']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
		       	<li>
		      		<h2><?php echo $_smarty_tpl->tpl_vars['row']->value['user_from'];?>
 says:</h2><p><?php echo $_smarty_tpl->tpl_vars['row']->value['m_content'];?>
</p>
		      	</li>
		      	<?php } ?>
		      	</ul>
		       <?php }?> 
		       <br/>
              <h4>Say Something:</h4>
              <textarea class="input-xlarge" style="margin:0;width:500px;" id="content" name="content" rows="5" > It is such a nice picture......</textarea>
            	 
           	 </div>
           </div>
           <input type="hidden" name="m_target" id="m_target" value="<?php echo $_smarty_tpl->tpl_vars['m_target']->value;?>
"/>
           <input type="hidden" name="m_target_type" id="m_target_type" value="<?php echo $_smarty_tpl->tpl_vars['m_target_type']->value;?>
"/>
           <input type="hidden" name="user_to" id="user_to" value="<?php echo $_smarty_tpl->tpl_vars['user_to']->value;?>
"/>
           
	            
          <div class="form-actions">
            <input type="submit" class="btn btn-primary" value="Submit"></input>
            <input type="button" class="btn" onclick="javascrpt:close_reg_form()" value="Cancel"></input>
          </div>
          <input type="hidden" name="username" id="username" value="<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
"/>
           
        </fieldset>
      </form>
      
    </div>
    </div>
</div><?php }} ?>